xen/elf: fix MISRA C 2012 Rule 20.7 violations
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 22 Aug 2022 10:10:28 +0000 (12:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Aug 2022 10:10:28 +0000 (12:10 +0200)
commitc5659ef2dab3b4f538615e46a4990eea3101917c
treee9e2ce6cce6d2ed5265c7966d5acc8a052eff539
parent722a61dbb5010507693593243dbba311d4e9c0b5
xen/elf: fix MISRA C 2012 Rule 20.7 violations

In macros ELF32_ST_TYPE() and ELF64_ST_TYPE(), add parentheses around the
macro parameter to prevent against unintended expansions.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/xen/elfstructs.h